<table class="table table-hover">
    <tr class="info">
        <th>标题</th>
        <th>作业总数</th>
        <th>小题数</th>
        <th>创建时间</th>
        <th>书本</th>
        <th>地址</th>
    </tr>
    {% for row in data %}
        <tr>
            <td>{{ row['name'] }}</td>
            <td>{{ row['workCount'] }}</td>
            <td>{{ row['topicNum'] }}</td>
            <td>{{ row['createTime'] }}</td>
            <td>
                <table class="table">
                    <tr class="info">
                        <th>
                            {% if power['edit'] %}
                                书名
                            {% else %}
                                书编号
                            {% endif %}
                        </th>
                    </tr>
                    {% for book in row['books'] %}
                        <tr>
                            <td>
                                {% if power['edit'] %}
                                    {{ book['bookName'] }}
                                {% else %}
                                    {{ book['bookId'] }}
                                {% endif %}
                            </td>
                        </tr>
                    {% endfor %}
                </table>
            </td>
            <td><a href="{{ row['contentUrl'] }}">{{ row['contentUrl'] }}</a></td>
        </tr>
    {% endfor %}
</table>